import request from "@/utils/request";

export function getClassData(params, data) {
  return request({
    url: `/englishStudentSentence/selectSentenceNum`,
    method: "post",
    params,
    data,
  });
}
// 获取章节列表
export function getUnitList(params, data) {
  return request({
    url: `/englishStudentSentence/selectGroupUnit`,
    method: "get",
    params,
    data,
  });
}
// 获取一组句子
export function getStudySentenceList(params, data) {
  return request({
    url: `/englishStudentSentence/getSentenceGroupListVo`,
    method: "get",
    params,
    data,
  });
}
// 句子本获取句子
export function getSentenceList(params, data) {
  return request({
    url: `/englishStudentSentence/findSentenceBook`,
    method: "post",
    params,
    data,
  });
}
// 提交单词学习校验结果
export function sendSentenceStatus(params, data) {
  return request({
    url: `/englishStudentSentence/add`,
    method: "get",
    params,
    data,
  });
}
// 获取试卷
export function getSentencePaper(params, data) {
  return request({
    url: `/englishTestSentence/getSentenceBookVOByUnitId`,
    method: "get",
    params,
    data,
  });
}
// 校验试卷
export function checkSentencePaper(params, data) {
  return request({
    url: `/englishTestSentence/checkSentence`,
    method: "post",
    params,
    data,
  });
}
// 获取复习数量
export function getReviewNumber(bookId) {
  return request({
    url: `/englishTestSentence/searchReviewWordNumList`,
    method: "get",
    params: {
      bookId,
    },
  });
}
// 记忆追踪
export function getMemoryReview(params) {
  return request({
    url: `/englishTestSentence/findEnglishStudentSentenceVO`,
    method: "get",
    params,
  });
}
// 根据句子ID 返回题目
export function getQuestionBySentence(params, data) {
  return request({
    url: `/englishTestSentence/findSentenceById`,
    method: "post",
    params,
    data,
  });
}
// 获取需要复习的单词数
export function getIsReviewNumber(params, data) {
  return request({
    url: `/englishTestSentence/smartReview`,
    method: "get",
    params,
    data,
  });
}
// 获取需要复习的单词数
export function getTestSentenceData(params) {
  return request({
    url: `/englishTestSentence/findStudyConditionVO`,
    method: "get",
    params,
  });
}
// （句子课程进度）
export function getSentenceListByType(params, data) {
  return request({
    url: `/englishTestSentence/findEnglishSentenceVO`,
    method: "post",
    params,
    data,
  });
}
// 查询测试记录
export function getPaperList(params, data) {
  return request({
    url: `/englishTestSentence/findTestRecord`,
    method: "post",
    params,
    data,
  });
}
// 接受复习结果
export function setSentencePass(data) {
  return request({
    url: `/englishStudentSentence/addReview`,
    method: "post",
    data,
  });
}
